<{if isset($arealist)}>
<div class="list-group">
    <a href="javascript:void(0);" data-id="0"  class="list-group-item area_return"><span class="fa fa-chevron-left"></span></a>
    <{foreach $arealist as $v}>
    <a href="javascript:void(0);" data-id="<{$v["id"]}>"  class="jp_arealist cursor list-group-item <{if isset($tenant["district_id"])&&$tenant["district_id"]&&intval($v["id"])===intval($tenant["district_id"])}>active<{/if}>">
      <{$v["area"]}>
  </a>
    <{/foreach}>

</div>
<script>
        $(".area_return").click(function(){
        $(".jplocalarealist").fadeOut("normal",function(){
            $(".jplocalcitylist").fadeIn();
        });
    });
     $(".jp_arealist").click(function(){
           var area_id=$(this).data("id");
           var area=$(this).html();
           $(".jpsearchlabelcity").html(area);
           var jplabeldistrict=$(".jplabeldistrict");
           if(jplabeldistrict.length>0){
             jplabeldistrict.html(area);
             $.post("<{echo Common::RewriteUrl("Tenantadmin","public_ajax_updateArea");}>",{"area":area,"tid":<{$tenant["id"]}>});
           }
           $("input[name='district_id']").val(area_id);
           $("#jpmylocalmodal").modal('hide');
         });
</script>
<{/if}>